<?php
session_start();
//echo $_REQUEST['code'];
			include_once('config/db_conn.php');
			include_once('db_config/db_user.php');
			
			$user=new user();
			$table='ninerr_user';
			$rs_uniq_user=$user->uniq_user_list('user_activation_code',$_REQUEST['code']);
			$data_uniq_user=mysql_fetch_array($rs_uniq_user);
			if($data_uniq_user['user_activation_code'] == $_REQUEST['code']){
				$dataArray=array("user_status"=>'Active');
				$fldArray=array("user_activation_code"=>$_REQUEST['code']);
				$user->dataUpdate($table,$dataArray,$fldArray);
			}
			//$dataArray['user_status']='Inactive';exit;
			//$user->dataInsert('ninerr_user',$dataArray);       
reDirect('index.php');         
?>